﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 药品库存锁定表
    /// </summary>
    public partial class LockDrugStore
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 处方明细ID/用药申请ID
        /// </summary>
        public long RecordId { get; set; }
        /// <summary>
        /// 项目全局ID
        /// </summary>
        public int GlobalId { get; set; }
        /// <summary>
        /// 药品ID
        /// </summary>
        public int DrugId { get; set; }
        /// <summary>
        /// 对应药房ID
        /// </summary>
        public int DeptId { get; set; }
        /// <summary>
        /// 锁定数量
        /// </summary>
        public decimal Quantity { get; set; }
        /// <summary>
        /// 锁定包装因子
        /// </summary>
        public int PackFactor { get; set; }
        /// <summary>
        /// 锁定包装单位
        /// </summary>
        public int PackUnit { get; set; }
        /// <summary>
        /// 锁定截止时间
        /// </summary>
        public DateTime LockEndTime { get; set; }
        /// <summary>
        /// 锁定类型 1门诊 2住院
        /// </summary>
        public int LockType { get; set; }
        /// <summary>
        /// 院区ID
        /// </summary>
        public int HospitalId { get; set; }
        /// <summary>
        /// 有效状态 1有效 0无效
        /// </summary>
        public bool? Status { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }
        /// <summary>
        /// 创建时间/锁定时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
